print("THe pastrami has been sold out")

sandwich_orders=['pizza1','pastrami','pizza2','pastrami','pizza3','pastrami']

while 'pastrami' in sandwich_orders:
    sandwich_orders.remove('pastrami')
    
finished_sandwiches=[]

while sandwich_orders:
    sandwich=sandwich_orders.pop()
    print(f"I made your {sandwich} sandwich")
    finished_sandwiches.append(sandwich)

for sandwich in finished_sandwiches:
    print(f"I made {sandwich}")